const findListReducer = (prevstate=[],action)=>{

		let {type,payload}= action;
		switch(type){
				case "addList":
						return [...prevstate,...payload];
				case "initList":
						return payload;
				default:
						return prevstate
		}

};

export default findListReducer;
